#pragma once

#include "SDL.h"

class cInput
{
private:
	SDL_Event m_Event;
	bool m_KeysHeld[323];

public:
	cInput();
	virtual ~cInput();

	// Fill m_Event and m_KeysHeld with any event information, return false if no event //
	bool GetEvent();

	// Return true if user has manually closed the window //
	bool IsQuit();

	// Return the SDL key code of the key that's been pressed (see below for SDL key codes) //
	int GetKeyPressed();

	// Return true if the given key is being held down //
	bool KeyHeld(int key);

	enum keyType
	{
		kUp = 0,
		kLeft,
		kRight,
		kDown,
		kW,
		kA,
		kD,
		kS,
	};
};